package Controller_Command_21.commands;

import Controller_Command_21.Command;
import Controller_Command_21.Furniture.Light;

public class LightCommand implements Command {
    private final Light light = new Light();

    @Override
    public void execute() {
        System.out.println("灯光正在打开...");
        light.turnOn();
    }

    @Override
    public void undo() {
        System.out.println("灯光正在关闭...");
        light.turnOff();
    }

}
